{*list most view products*}
<div class="center_title_bar">Most Viewed Products</div> 
{section name=sec1 loop=$item_arr}
<div class="prod_box">
	<div class="top_prod_box"></div>
    <div class="center_prod_box">            
         <div class="product_title"><a href="javascript: void(0);" onclick="loadPage('productdetails', '{$item_arr[sec1].item_code}', '')">{$item_arr[sec1].product_title}</a></div>
         <div class="product_img"><img src="images/products/thumbs/{$item_arr[sec1].filename}" alt="" title="" border="0" onmousemove="" /></div>
         <div class="prod_price"><span class="price">US $ {number_format($item_arr[sec1].product_price_lkr / $item_arr[sec1].rate, $DECIMAL_USD, '.', ',')}</span></div>                        
    </div>
    <div class="bottom_prod_box"></div>
    <div class="prod_details_tab">
    	<a href="javascript: void(0);" onclick="addtoCart('{$item_arr[sec1].item_code}');" title=""><img src="images/cart.gif" alt="" title="" border="0" class="left_bt" /></a>
    	<a href="javascript: void(0);" onclick="loadPage('productdetails', '{$item_arr[sec1].item_code}')" class="prod_details">details</a>            
    </div>
</div>
{/section} 
 	
{*list random products*}
<div class="center_title_bar" {if $lang eq "sin"} {"style='font-size: 18px;'"} {/if}>{$objTranslate->translate("Products", "homepage", {$lang})}</div>
{*$objProduct->products()*} 

{section name=sec2 loop=$product_arr}
<div class="prod_box">
	<div class="top_prod_box"></div>
    <div class="center_prod_box">            
         <div class="product_title"><a href="javascript: void(0);" onclick="loadPage('productdetails', '{$product_arr[sec2].item_code}', '')">{substr($product_arr[sec2].product_title, 0, 25)}</a></div>
         <div class="product_img"><img src="images/products/thumbs/{$product_arr[sec2].filename}" alt="" title="" border="0" /></div>
         <div class="prod_price"><span class="price">US $ {number_format($product_arr[sec2].product_price_lkr / $product_arr[sec2].rate, $DECIMAL_USD, '.', ',')}</span></div>                        
    </div>
    <div class="bottom_prod_box"></div>
    <div class="prod_details_tab">
    	<a href="javascript: void(0);" onclick="loadPage('addtocart', '{$item_arr[sec1].item_code}');" title=""><img src="images/cart.gif" alt="" title="" border="0" class="left_bt" /></a>
    	<a href="javascript: void(0);" onclick="loadPage('productdetails', '{$product_arr[sec2].item_code}')" class="prod_details">details</a>            
    </div>
</div>
{/section}